package com.crazymakercircle.dhptester.command;

import com.crazymakercircle.dhptester.distributed.WorkerManager;
import com.crazymakercircle.util.Logger;
import org.springframework.stereotype.Service;

import java.util.Scanner;


@Service("WorkerViewCommand")
public class WorkerViewCommand implements BaseCommand
{
    public static final String KEY = "3";

    @Override
    public void exec(Scanner scanner)
    {
        Logger.cfo("查看工作节点");

        WorkerManager.getInst().viewWorker();

    }


    @Override
    public String getKey()
    {
        return KEY;
    }

    @Override
    public String getTip()
    {
        return "view workers";
    }

}
